package com.qf.staff.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.List;

@Data
@TableName(value = "yu_emp")
//
public class Emp {
    public static final String COL_EMP_ID = "emp_id";
    public static final String COL_EMP_NAME = "emp_name";
    public static final String COL_SEX = "sex";
    public static final String COL_DEPT_ID = "dept_id";
    public static final String COL_STATUS = "status";
    /**
     * 主键
     */
    @TableId(value = "emp_id", type = IdType.INPUT)
    private Integer empId;
    /**
     * 员工姓名
     */
    @TableField(value = "emp_name")
    private String empName;
    /**
     * 1男 0女
     */
    @TableField(value = "sex")
    private Integer sex;
    /**
     * 部门id
     */
    @TableField(value = "dept_id")
    private Integer deptId;
    @TableField(value = "`status`")
    @Version
    private Integer status;
    @TableField(value = "head_portrait")
    private String headPortrait;
    @TableField(exist = false)
    private List<Dept> depts;
}